<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html;charset=utf-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%@ include file="/assets/public.jsp"%>
    <title>部门</title>

</head>
<body>
<%@include file="/assets/header.jsp"%>

<div class="d-flex align-items-stretch">
    <!-- Sidebar Navigation-->
    <%@ include file="/assets/side.jsp"%>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">全部部门</h2>
            </div>
        </div>
        <section class="no-padding-bottom">

            <div class="list-group subject">
                <c:forEach items="${deptInfo}" var="deptInfo">
                    <div class="list-group-item">
                        <a href="#deptDetail1${deptInfo.deptId}" data-toggle="collapse">${deptInfo.deptName} &nbsp;${deptInfo.count}人</a>
                        <div id="deptDetail1${deptInfo.deptId}" class="collapse deptDetail">
                            <ul>
                                <c:forEach items="${deptInfo.userList}" var="user">
                                    <li>
                                        <a href="#">${user.real_name}</a>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                    </div>
                </c:forEach>
            </div>
        </section>
        <%@include file="/assets/footer.jsp"%>
    </div>
</div>
</body>
</html>